var StudentVoice = {
    getData: function () {
        return testData;
    },

    getClassData: function (callback) {
        jQuery.getJSON('/getClassLayoutData', null, callback);
    },

    setClassData: function (data, callback) {
        jQuery.post('/setClassLayoutData', data, function (res) {
            console.log(res);
        });
    },

    sendData: function () {
    },

    drawClassSchedule: function () {

    },

    getTestData: function (id, callback) {
        var data = {
            id: id
        };

        $.getJSON('/getQuizQuestions', data, callback);

        /*var fakedata = [{
            name: 'question1',
            text: 'how much wood would a wood chuck chuck',
            answers: [{
                text: 'none',
                value: 0
            },
				{
				    text: 'a lot',
				    value: 50
				}]
        },
			{
			    name: 'question2',
			    text: 'which witch watches which watch',
			    answers: [{
			        text: 'first witch',
			        value: 1
			    },
				{
				    text: 'second witch',
				    value: 2
				}]
			}
		];

        callback(fakedata);*/
    }
};
